<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订购员主页</title>

    <!-- 引入公共头部 -->
    <th:block th:insert="~{/head :: head}"></th:block> <!-- 相当于 <jsp:include page="../head.jsp"/> -->

    <script>
        function checkAll(obj) {
            // 获取name=id的复选框
            var boxs = document.getElementsByName("id");
            alert(obj.checked);
            for (var i = 0; i < boxs.length; i++) {
                boxs[i].checked = obj.checked;
            }
        }
    </script>
</head>

<body>
<!-- Start: Header -->
<div th:insert="~{header::header}"></div> <!-- 相当于 <jsp:include page="../header.jsp"/> -->
<!-- End: Header -->

<!-- Start: Main -->
<div id="main">
    <!-- Start: Sidebar -->
    <div th:insert="~{purchase/left::aside}"></div> <!-- 相当于 <jsp:include page="left.jsp"/> -->
    <!-- End: Sidebar -->

    <!-- Start: Content -->
    <section id="content">
        <div id="topbar" class="affix">
            <ol class="breadcrumb">
                <li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
            </ol>
        </div>
        <div class="container">


            <div class="col-md-11">
                <div id="docs-content">
                    <h2 class="page-header margin-top-none">下载订购单</h2>
                    <a th:href="@{/purchase/download(filename='total_orders.csv')}">下载订购单</a>
                </div>
            </div>
        </div>
    </section>
    <!-- End: Content -->
</div>
<!-- End: Main -->
</body>
</html>